<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
                            <div class="form-group">
								<label class="col-sm-3 control-label">品名：</label>
								<div class="col-sm-8">
									<select id="productId" name="productId" class="form-control" onchange="setSampleName()">

									</select>
								</div>
								<div class="col-sm-8">
									<input id="sampleName" name="sampleName" class="form-control" type="hidden">
								</div>
							</div>

														                                                                <div class="form-group">	
								<label class="col-sm-3 control-label">取样时间：</label>
								<div class="col-sm-8">
									<input id="sampleDate" name="sampleDate" class="form-control" type="text">
								</div>
							</div>
														                                                                <div class="form-group">	
								<label class="col-sm-3 control-label">批次：</label>
								<div class="col-sm-8">
									<input id="code" name="code" class="form-control" type="text">
								</div>
							</div>
														                                                                <div class="form-group">	
								<label class="col-sm-3 control-label">留样温度：</label>
								<div class="col-sm-8">
									<select id="sampleTemperature" name="sampleTemperature" class="form-control">
										<option value="0">恒温</option>
										<option value="1">常温</option>
									</select>
								</div>
							</div>
														                                                                <div class="form-group">	
								<label class="col-sm-3 control-label">数量：</label>
								<div class="col-sm-8">
									<input id="number" name="number" class="form-control" type="text">
								</div>
							</div>
														                                                                <!--<div class="form-group">	-->
								<!--<label class="col-sm-3 control-label">取样人 :用户id：</label>-->
								<!--<div class="col-sm-8">-->
									<!--<input id="sampleMan" name="sampleMan" class="form-control" type="text">-->
								<!--</div>-->
							<!--</div>-->
														                                                                <!--<div class="form-group">	-->
								<!--<label class="col-sm-3 control-label">留样记录人 :用户id：</label>-->
								<!--<div class="col-sm-8">-->
									<!--<input id="keepSampleMan" name="keepSampleMan" class="form-control" type="text">-->
								<!--</div>-->
							<!--</div>-->
														                                                                <!--<div class="form-group">	-->
								<!--<label class="col-sm-3 control-label">：</label>-->
								<!--<div class="col-sm-8">-->
									<!--<input id="state" name="state" class="form-control" type="text">-->
								<!--</div>-->
							<!--</div>-->
														                                                                <!--<div class="form-group">	-->
								<!--<label class="col-sm-3 control-label">：</label>-->
								<!--<div class="col-sm-8">-->
									<!--<input id="createBy" name="createBy" class="form-control" type="text">-->
								<!--</div>-->
							<!--</div>-->
														                                                                <!--<div class="form-group">	-->
								<!--<label class="col-sm-3 control-label">：</label>-->
								<!--<div class="col-sm-8">-->
									<!--<input id="createDate" name="createDate" class="form-control" type="text">-->
								<!--</div>-->
							<!--</div>-->

							<div class="form-group">
								<label class="col-sm-3 control-label">备注：</label>
								<div class="col-sm-8">
									<input id="remake" name="remake" class="form-control" type="text">
								</div>
							</div>
																					<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript"  th:src="@{/js/appjs/check/keepSample/add.js}" src="/js/appjs/check/keepSample/add.js">
	</script>
    <script type="text/javascript">
        laydate.render({
            elem: '#sampleDate',
			type: 'datetime'
        });

        function setSampleName() {
			var productName = $("#productId").find("option:selected").text()
			$("#sampleName").val(productName);
			console.log($("#sampleName").val())
        }
	</script>
</body>
</html>
